package constans

import "mall/common/global"

const SpuNameRepeatError uint32 = 200000
const SpuAttrValueArrEmptyErr uint32 = 200001
const SkuNameRepeatError uint32 = 200002
const SpuInfoNoExistError uint32 = 200003
const SpuAttrValueRepeatError uint32 = 200004
const SpuIsDeletedError uint32 = 200005
const SkuIsDeletedError uint32 = 200006
const SkuStockNoExistErr uint32 = 200007
const SkuAttrValueRepeatError uint32 = 200008
const BrandNameRepeatErr uint32 = 200009
const BrandNoExistErr uint32 = 200010
const BrandNameValidErr uint32 = 200011
const AttrNameRepeatErr uint32 = 200012
const AttrNotExistErr uint32 = 200013
const AttrCategoryNotExistErr uint32 = 200014
const AttrValueRepeatErr uint32 = 200015
const CategoryNotExistErr uint32 = 200016
const CategoryRepeatErr uint32 = 200017

func init() {
	global.ErrorMessageMap[SpuNameRepeatError] = "同店铺同类名商品名称不能重复"
	global.ErrorMessageMap[SpuAttrValueArrEmptyErr] = "商品SPU商品属性值列表不能为空"
	global.ErrorMessageMap[SkuNameRepeatError] = "商品Sku名称重复"
	global.ErrorMessageMap[SpuInfoNoExistError] = "未查询到SPU信息"
	global.ErrorMessageMap[SpuAttrValueRepeatError] = "Spu属性值%s"
	global.ErrorMessageMap[SpuIsDeletedError] = "未查询到SPU信息"
	global.ErrorMessageMap[SkuIsDeletedError] = "未查询到SKU信息"
	global.ErrorMessageMap[SkuStockNoExistErr] = "未查询到商品库存信息"
	global.ErrorMessageMap[SkuAttrValueRepeatError] = "Sku属性值%s"
	global.ErrorMessageMap[BrandNameRepeatErr] = "品牌名称重复"
	global.ErrorMessageMap[BrandNoExistErr] = "未查询到品牌信息"
	global.ErrorMessageMap[BrandNameValidErr] = "品牌名称非法"
	global.ErrorMessageMap[AttrNameRepeatErr] = "门店属性值名称不能重复"
	global.ErrorMessageMap[AttrNotExistErr] = "未查询到门店属性值"
	global.ErrorMessageMap[AttrCategoryNotExistErr] = "未查询到门店属性值分类信息"
	global.ErrorMessageMap[AttrValueRepeatErr] = "添加属性值重复,请检查添加属性值"
	global.ErrorMessageMap[CategoryNotExistErr] = "未查询到门店分类信息"
	global.ErrorMessageMap[CategoryRepeatErr] = "门店分类重复添加"
}
